<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  created () {
    // 在页面加载时读取sessionStorage里的状态信息
    if (sessionStorage.getItem('store')) {
      this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('store'))))
    }
    // 在页面刷新时将vuex里的信息保存到sessionStorage里
    window.addEventListener('beforeunload', () => {
      sessionStorage.setItem('store', JSON.stringify(this.$store.state))
    })
  }
}
</script>

<style>
  body {
    color: #4a4a4a;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0px;
  }
  html,body{
    width: 100%;
    height: 100%;
  }
   .txtRight{
     text-align: right;
   }
  input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
  }
  .el-range-editor.el-input__inner{
    padding:1px 10px;
  }
  #qqmap{
    height:100%;
    width:100%;
    overflow: hidden;
  }
  .toolsbar{
    height:50px;
    /*line-height:40px;*/
    border-bottom:1px solid #eeeeee;
    padding:0px;
    background-color:#ffffff;
    margin:0px 0px 10px 0px;
  }
  .el-header{
    padding:0px;
  }
  .el-main{
    background-color: #ffffff;
    padding:0px;
    margin:0px 0px 0px 64px;
    position: absolute;
    top: 51px;
    left:0px;
    right:0px;
    bottom: -10px;
    overflow: hidden;
  }
  .contentwarp{
    height:100%;
    overflow:hidden;
    margin:10px;
  }
  .app-main{
    height:100%;
    overflow: hidden;
  }
  .warpLogin .el-header{
    background-color: rgba(36, 42, 49, 0.5);
    width: 100%;
    height: 65px;
  }
  .warpLogin .el-footer{
    position:fixed;
    bottom:0px;
    left: 0px;
    right: 0px;
    border-top:1px solid #202021;
  }
  .warpLogin .el-main{
    overflow: hidden;
    position: fixed;
    top: 65px;
    left: 0px;
    right: 0px;
    background-color: rgb(255,0,255,0);
  }
  .loginRuleForm{
    margin: 0 auto 10px auto;
    width: 280px;
    padding-top: 20px;
  }
  .warpLogin{
    position:fixed;
    height:100%;
    width: 100%;
    height: 100%;
    background: url(./assets/images/login_bg.jpg) no-repeat center;
    background-size: cover;
  }
  .headerContent {
    font-size: 24px;
    color: #fff;
    margin: 0 auto;
    height: 70px;
    width: 85%;
    line-height: 54px;
  }
  .loginWrap {
    position: relative;
    width: 85%;
    margin: auto;
    min-height: 500px;
  }
  .loginContent {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 340px;
    height: 440px;
    background-color: rgba(150, 150, 150, 0.2);
    opacity: 0.85;
    border-bottom: 1px solid #00c696;
    margin-top: 9.8%;
  }
  .loginTop{
    width: 100%;
    height: 69px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-size: 180px 40px;
    margin: 0 auto 0 auto;
    text-align: center;
    font-size: 24px;
    line-height: 69px;
    color: #ffffff;
  }
  .copyright{
    color: #cacbcc;
    line-height: 2;
    padding-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 15px;
    text-align: center;
  }
   .navbar .el-badge__content.is-fixed{
     top:10px;
   }
  .app-content {
    padding-top: 10px;
  }
  .peopleListBoxFoot .el-pager{
    background-color: rgba(0,0,0,0.5);
    width:409px;
    align-content:center;
  }
  .peopleListBoxFoot .el-pager li{
    background-color: rgba(0,0,0,0);
  }
  .peopleListBoxFoot .el-pagination .btn-next, .peopleListBoxFoot .el-pagination .btn-prev{
    background-color: rgba(0,0,0,0.5);
    color:#409EFF;
  }
  .pull-right {
    float: right;
  }
  .pull-right {
    float: right!important;
  }
  .peopleListBoxContent .el-button--mini{
    padding: 2px 4px;
    border-radius:1px;
  }
  .avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    vertical-align:middle;
  }
  .el-menu-item.is-active{
    color:#303133;
  }
</style>
